
window.onload = function(){
    var ns = document.getElementById("nav").getElementsByTagName("div"); 

    var nav1 =document.getElementById("nav1")
    var nav2 =document.getElementById("nav2")
    var aa =document.getElementById("aa")
    var bb = document.getElementById('bb')
    var cc =document.getElementById("cc")
    var dd = document.getElementById('dd')
    nav1.onclick = function() {
        aa.className='on';
        bb.style.display = "block";
        cc.className='';
        dd.style.display = "none";
    }
     nav2.onclick = function() {
        cc.className='on';
        dd.style.display = "block";
        aa.className='';
        bb.style.display = "none";
    }
    
}